<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="content-type" content="text/html; charset=utf-8"><title><?php echo ($seo["title"]); ?></title><meta name="keywords" content="<?php echo ($seo["keys"]); ?>"><meta name="description" content="<?php echo ($seo["desc"]); ?>"><meta http-equiv="x-ua-compatible" content="ie=7"><script src="__PUBLIC__/statics/js/jquery/jquery-1.7.2.min.js"></script><script src="__PUBLIC__/statics/js/ThinkAjax.js"></script><script src="__TMPL__Public/js/common.js?1"></script><style type="text/css">.op .in {
	display:none;
}
.op .out {
	display:none;
}
</style><script>$(document).ready(function(){
	//登录
	var id = $.cookie('id');
	var username =$.cookie('name');
	if(id > 0){
		$(".op .in").show();
		if(username != ''){
			$('#username').text(username.substr(0,4)+'..');
		}
	}else{
		$(".op .out").show();
	}
	//搜索
	var web_path=$('#web_path').text();
	<?php if(isset($album)): ?>$(".searchBox").attr('action',web_path+'index.php?a=album&m=Search&g=Home');
		$('#a').val('album');<?php endif; ?>	var key = $(".searchKey").attr('placeholder');
	
	$(".searchKey").focus(function(){
		if($(".searchKey").val() == key){
			$(this).val('');
		}
	});
	
	$(".searchKey").blur(function(){
		if($(".searchKey").val() == ''){
			$(this).val(key);
		}
	});
	
	$(".searchKey").keyup(function(){
		var keywords = $(this).val();
		if(keywords != ''){
			$(".searchType").show();
		}else{
			$(".searchType").hide();
		}
		$(this).attr('value',keywords);
		if(keywords.length <= 6){
			$(".input_words").text(keywords);
			$(".input_words").text(keywords);
		}else{
			keywords = keywords.substr(0,6)+'...';
			$(".input_words").text(keywords);
			$(".input_words").text(keywords);
		}
	});
	
	$(".searchOtherKey").click(function(){
		var a = $(this).attr('id');
		$(".searchBox").attr('action',web_path+'index.php?a='+a+'&m=Search&g=Home');
		$('#a').val(a);
		$("form.searchBox").submit();
	})
	//返回顶部
	$("#goTop").click(function() {
			$("html, body").animate({ scrollTop: 0 }, 120);
	}), $backToTopFun = function() {
		var st = $(document).scrollTop(), winh = $(window).height();
		(st > 0)? $("#goTop").show(): $("#goTop").hide();    
		//IE6下的定位
		if (!window.XMLHttpRequest) {
			$("#goTop").css("top", st + winh - 166);    
		}
	};
	$(window).bind("scroll", $backToTopFun);
	$(function() { $backToTopFun(); });
	//光标悬浮用户名显示下拉列表
	$("#setting").hover(function(){
		$("#moreConnectBox").show();
	},function(){
		$("#moreConnectBox").hide();
	})
});
$(function(){
		var nav_top = $('.nav_offsetTop').offset().top; 
		$show_nav = function() {
		var st = $(document).scrollTop();
		if(st > nav_top){
			$(".header_fixed").show();
		}else{
			$(".header_fixed").hide();
		}
	};
	$(window).bind("scroll", $show_nav);
})
$(function(){
	var nav_top = $('.nav_offsetTop').offset().top; 
	var st = $(document).scrollTop();
	if(st > nav_top){
		$(".header_fixed").show();
	}else{
		$(".header_fixed").hide();
	}
})
</script><link rel="apple-touch-icon-precomposed" href="__TMPL__Public/img/custom_icon_precomposed.png"><link rel="stylesheet" type="text/css" href="__TMPL__Public/css/meta.css"><link rel="stylesheet" type="text/css" href="__TMPL__Public/css/index.css"></head><body><div id="web_path" style="display:none;"><?php echo C('web_path');?></div><div class="header_fixed" ><!---滚动条不在最顶部的时候 主导航固定，这个navbar的position值为fixed，top数值是计算后的结果，跟随滚动条据顶部距离变动--><div class="nheader"><div class="header_b"><span class="header_b_left"></span><span class="header_b_right"></span><ul class="nav_new"><li><a class="<?php if('index' == $curpage): ?>home_d<?php else: ?>home<?php endif; ?> f14_f fb_f" href="<?php echo C('site_domain');?>">首页<span class="shining none_f"></span></a></li><!--<li><a class="group f14_f fb_f" href="/magazine">翻杂志</a></li>--><li><a class="<?php if('album' == $curpage): ?>group_d<?php else: ?>group<?php endif; ?> racks f14_f fb_f" href="<?php echo get_url('index','','album');?>">专辑</a><?php if(is_array($p_cate_list)): $i = 0; $__LIST__ = $p_cate_list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vop): $mod = ($i % 2 );++$i;?><a class="<?php if($vop['id'] == $id): ?>racks1_d<?php else: ?>racks1<?php endif; ?> f12_f" href="<?php echo get_url('index',$vop['id'],'cate');?>"><?php echo ($vop["name"]); ?></a><?php endforeach; endif; else: echo "" ;endif; ?></li></ul><div class="nav_right" style="height:23px;width:210px;overflow:hidden"><!--<?php echo C("site_name");?>--><div id="bdshare" class="bdshare_b" style="line-height: 12px;"><img src="http://share.baidu.com/static/images/type-button-5.jpg" /><a class="shareCount"></a></div></div></div></div></div><div class="header_top" style="margin-left:auto;margin-right:auto;width:948px;"><!---滚动条不在最顶部的时候 主导航固定，这个header_top加此样式style="margin-bottom: 44px; "--><a class="logo_new" href="<?php echo C('site_domain');?>">美丽说</a><ul class="menu_leo op"><li class="in"><a id="shareMeiliDialog" class="h_share" href="<?php echo get_url('release','','user');?>"><b class="f14_f">+</b> 分享我喜欢的</a></li><li class="in" id="setting"><a href="<?php echo get_url('index','','user');?>"><span class="s_face"><img onerror="this.src='__PUBLIC__/statics/images/avatar-60.png'" src=<?php if($nav_user_info['img'] == ''): ?>__PUBLIC__/statics/images/avatar-60.png<?php else: echo C('web_path');?>Uploads/avatar_small/<?php echo ($nav_user_info["img"]); endif; ?> /></span><b id="username"><?php echo ($nav_user_info["name"]); ?></b><em class="redarrow"></em></a><!--光标悬浮用户名显示下拉列表--><ul id="moreConnectBox" class="add_menu_leo hw76 none_f" style="display: none;"><li><a target="" href="<?php echo get_url('share','','user');?>">我的分享</a></li><li><a target="" href="<?php echo get_url('like','','user');?>">我的喜欢</a></li><li class="b_line"><a target="" href="<?php echo get_url('album','','user');?>">我的专辑</a></li><li class="b_line"><a target="" href="<?php echo get_url('release','','user');?>">发布分享</a></li><li><a target="" href="<?php echo get_url('account','','user');?>">设置账号</a></li></ul></li><li class="in" id="message" style="border-right: none;"><a class="msg" href="<?php echo get_url('logout','','user');?>">退出<b class="mgsTotalNum red_f"></b><!--<em class="redarrow"></em>--></a></li><li class="out"><a href="<?php echo get_url('sinalogin','','user');?>"><em class="i_sina">&nbsp;</em>微博登录</a></li><li class="out"><a href="<?php echo get_url('qqlogin','','user');?>"><em class="i_QQ">&nbsp;</em> QQ登录</a></li><li class="out"><a href="<?php echo get_url('taobaologin','','user');?>"><em class="i_taobao">&nbsp;</em> 淘宝登录</a></li><li class="out"><a class="red_f tunder_f" href="<?php echo get_url('login','','user');?>">登录</a></li><li class="out" style="border-right:none;"><a class="red_f tunder_f" href="<?php echo get_url('register','','user');?>">注册</a></li></ul><div class="ser_n"><form class="searchBox" action="<?php echo get_url('index','','search');?>" method="get"><input id="a" name="a" type="hidden" value="index"><input name="m" type="hidden" value="Search"><input name="g" type="hidden" value="Home"><span class="ipt1"><input class="searchKey" name="keywords" type="text" value="<?php if(isset($keywords)): echo ($keywords); else: echo C('default_kw'); endif; ?>" placeholder="<?php echo C('default_kw');?>" autoComplete= "Off"></span><span class="ipt2"><input type="submit" class="fm_hd_btm_shbx_bttn" value=""></span></form><ul class="searchType none_f" style="display: none; "><li class="searchOtherKey soUser" id='index' style="border-top: 1px solid #ccc;" stype="user_nickname">搜<samp>"</samp><span class="input_words"></span><samp>"</samp>相关宝贝</li><li class="searchOtherKey" id='album' stype="magazine">搜<samp>"</samp><span class="input_words"></span><samp>"</samp>相关专辑</li></ul></div></div><div class="clear"></div><div id="navbar" class="nav_offsetTop" style="position:relative; top: 0px; height: auto; left: 0px; "><!---滚动条不在最顶部的时候 主导航固定，这个navbar的position值为fixed，top数值是计算后的结果，跟随滚动条据顶部距离变动--><div class="nheader"><div class="header_b"><span class="header_b_left"></span><span class="header_b_right"></span><ul class="nav_new"><li><a class="<?php if('index' == $curpage): ?>home_d<?php else: ?>home<?php endif; ?> f14_f fb_f" href="<?php echo C('site_domain');?>">首页<span class="shining none_f"></span></a></li><!--<li><a class="group f14_f fb_f" href="/magazine">翻杂志</a></li>--><li><a class="<?php if('album' == $curpage): ?>group_d<?php else: ?>group<?php endif; ?> racks f14_f fb_f" href="<?php echo get_url('index','','album');?>">专辑</a><?php if(is_array($p_cate_list)): $i = 0; $__LIST__ = $p_cate_list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vop): $mod = ($i % 2 );++$i;?><a class="<?php if($vop['id'] == $id): ?>racks1_d<?php else: ?>racks1<?php endif; ?> f12_f" href="<?php echo get_url('index',$vop['id'],'cate');?>"><?php echo ($vop["name"]); ?></a><?php endforeach; endif; else: echo "" ;endif; ?></li></ul><div class="nav_right" style="height:23px;width:210px;overflow:hidden"><!--<?php echo C("site_name");?>--><div id="bdshare" class="bdshare_b" style="line-height: 12px;"><img src="http://share.baidu.com/static/images/type-button-5.jpg" /><a class="shareCount"></a></div></div></div></div></div><script type="text/javascript" id="bdshare_js" data="type=button" ></script><script type="text/javascript" id="bdshell_js"></script><script type="text/javascript">	document.getElementById("bdshell_js").src = "http://share.baidu.com/static/js/shell_v2.js?cdnversion=" + new Date().getHours();
</script><div class="wlc_top"><div class="wlc_bnr"><div class="boxImg"><ul class="_img" style="position: absolute; "><?php if(is_array($index_share_item)): $i = 0; $__LIST__ = $index_share_item;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$valsi): $mod = ($i % 2 );++$i;?><li class="left_f"><a target="_blank" href="<?php echo get_url('index',$valsi['id'],'item');?>"><img title="<?php echo ($valsi["title"]); ?>" width="640" src=<?php if($valsi['remark1'] != ''): ?>"<?php echo ($valsi["remark1"]); ?>"<?php else: ?>"<?php echo (get_img($valsi["img"],500)); ?>"<?php endif; ?>></a></li><?php endforeach; endif; else: echo "" ;endif; ?></ul></div><div class="_num adType1 "><a class="current"><span class="none_f">1</span></a><a class=""><span class="none_f">2</span></a><a class=""><span class="none_f">3</span></a><a class=""><span class="none_f">4</span></a></div></div><!-- 登录后 --><?php if($uid): ?><div id="user_active"><div class="user_info"><a class="avatar" href="<?php echo get_url('index','','user');?>" target="_blank"><img class="r3" onerror="this.src='/Public/statics/images/avatar.png'" src=<?php if($nav_user_info['img'] == ''): ?>__PUBLIC__/statics/images/avatar.png<?php else: echo C('web_path');?>Uploads/avatar_small/<?php echo ($nav_user_info["img"]); endif; ?> alt="<?php echo ($nav_user_info["name"]); ?>"/></a><p><a class="username" href="<?php echo get_url('index','','user');?>" target="_blank"><?php echo ($nav_user_info["name"]); ?></a><span class="feed_link"><?php echo ($nav_user_info["address"]); ?></span><span class="feed_link">欢迎回来<?php echo C("site_name"); if($nav_user_info['img'] == ''): ?>，去<a href="<?php echo get_url('img','','user');?>" target="_blank">设置亮头像</a>。<?php endif; ?></span></p></div><ul class="user_record"><li class="clearfix"><a href="<?php echo get_url('index','','user');?>" target="_blank" class="top_active_btn"><em style="cursor:pointer">我的首页</em></a></li><li class="clearfix"><a href="<?php echo get_url('share','','user');?>" target="_blank" class="top_active_btn"><em style="cursor:pointer">我的分享</em></a></li><li class="clearfix"><a href="<?php echo get_url('like','','user');?>" target="_blank" class="top_active_btn"><em style="cursor:pointer">我的喜欢</em></a></li><li class="clearfix"><a href="<?php echo get_url('album','','user');?>" target="_blank" class="top_active_btn"><em style="cursor:pointer">我的专辑</em></a></li></ul></div><?php else: ?><!--登录前--><div id="user_active"><div class="loginbox"><div class="logo"><img src="__TMPL__Public/img/log1.gif"></div><div class="nextprice">" 简单CMS " 有效单品统计： <strong><em><?php echo ($itemCount); ?></em></strong><span class="gx">我们每天都在为您精挑细选</span></div></div><?php if(($article_list) AND (C('article_show') == '1')): ?><h3 style="padding-bottom:3px"><a href="<?php echo get_url('index','','article');?>" target="_blank"><?php echo C(site_name);?>资讯</a></h3><ul class="items_pop" style="line-height:20px"><?php if(is_array($article_list)): $i = 0; $__LIST__ = $article_list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$voArt): $mod = ($i % 2 );++$i;?><li class="odd_num"><span style="float:right;color: #B3B3B3;">[<?php echo (date('Y-m-d',$voArt["add_time"])); ?>]</span><a href=<?php if($voArt['url']): echo ($voArt["url"]); else: ?>"<?php echo get_url('detail',$voArt['id'],'article');?>"<?php endif; ?> target="_blank"><span class="num1"><?php echo (msubstr($voArt["title"],0,15,'utf-8',false)); ?></span></a></li><?php endforeach; endif; else: echo "" ;endif; ?></ul><!--<?php if(is_array($article_list)): $i = 0; $__LIST__ = $article_list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$voArt): $mod = ($i % 2 );++$i;?><div class="nextprice"><a href="<?php echo get_url('detail',$voArt['id'],'article');?>"><?php echo (msubstr($voArt["title"],0,20,'utf-8',false)); ?></a><em style="float:right">[<?php echo (date('Y-m-d',$voArt["add_time"])); ?>]</em></div><?php endforeach; endif; else: echo "" ;endif; ?>--><?php else: ?><form id="index_login"><fieldset class="l"><input type="text" id="indexUname" placeholder="请输入用户名" value="请输入用户名" class="txt"><input type="password" id="indexPwd" class="txt"></fieldset><fieldset class="r"><p class="sub"><input type="button" loginBtn_post_action="<?php echo get_url('loginAction','','user');?>" loginBtn_post_location="<?php echo get_url('index','','user');?>" location_login="<?php echo get_url('login','','user');?>" id="indexLogin" ></p><p style="clear:both"><input id="remember" type="checkbox"><label for="remember">记住我</label></p></fieldset><p id="indexLgErr"></p></form><?php endif; ?></div><?php endif; ?></div><?php if(get_ad(9) != ''): ?><center><div style="width:950px;height:90px;overflow:hidden;margin-top:15px;"><?php echo get_ad(9);?></div></center><?php endif; if(is_array($index_group_cates)): $i = 0; $__LIST__ = $index_group_cates;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$val): $mod = ($i % 2 );++$i;?><div class="cmn_title w948_f mt14_f" id="wlcomdress"><p><a href="<?php echo get_url('index',$val['id'],'cate');?>" target="_blank">更多<samp>&gt;&gt;</samp></a></p><h3 class="f16_f">爱美丽们分享的<a class="red_f" href="<?php echo get_url('index',$val['id'],'cate');?>" target="_blank"><?php echo ($val["name"]); ?></a></h3><div class="words_link"><?php if(is_array($val['s'])): $i = 0; $__LIST__ = array_slice($val['s'],0,10,true);if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vals): $mod = ($i % 2 );++$i;?><a href="<?php echo get_url('tag',$vals['id'],'cate');?>" target="_blank"><?php echo ($vals["name"]); ?></a><?php endforeach; endif; else: echo "" ;endif; ?></div></div><div class="wlc_auto"><?php if(is_array($val['s_items'])): $i = 0; $__LIST__ = array_slice($val['s_items'],0,8,true);if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vals): $mod = ($i % 2 );++$i;?><div class="groupBox"><div class="groupCon"><div class="gc_title"><h4><a href="<?php echo get_url('tag',$vals['id'],'cate');?>" target="_blank"><?php echo ($vals["name"]); ?></a></h4></div><a href="<?php echo get_url('tag',$vals['id'],'cate');?>" target="_blank" class="imgBox"><?php if(is_array($vals['t_items'])): $key = 0; $__LIST__ = array_slice($vals['t_items'],0,9,true);if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$valss): $mod = ($key % 2 );++$key;?><img class="<?php if($key%3 == '0'): ?>r<?php endif; ?>" <?php if($valss['img'] != ''): ?>src="<?php echo (get_img($valss["img"],100)); ?>"<?php else: ?>src="__TMPL__Public/img/undefined.jpg"<?php endif; ?> /><?php endforeach; endif; else: echo "" ;endif; ?></a><div class="lookBox"><a class="btn" href="<?php echo get_url('tag',$vals['id'],'cate');?>" target="_blank">去看看</a></div></div></div><?php endforeach; endif; else: echo "" ;endif; ?><div class="clear_f"></div></div><?php endforeach; endif; else: echo "" ;endif; if($shop_list): ?><div class="brand_pic"><h3 class="f16_f">爱美丽们分享的<a class="red_f" href="javascript:void(0)">店铺</a></h3><div><?php if(is_array($shop_list)): $i = 0; $__LIST__ = $shop_list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$voShop): $mod = ($i % 2 );++$i;?><a href="<?php echo get_url('index',$voShop['id'],'shop');?>"><img src=<?php if($voShop['img']): ?>"<?php echo ($voShop["img"]); ?>"<?php else: ?>__TMPL__Public/img/undefined.jpg<?php endif; ?> alt="<?php echo ($voShop["name"]); ?>" title="<?php echo ($voShop["name"]); ?>"></a><?php endforeach; endif; else: echo "" ;endif; ?><div class="clear_f"></div></div></div><?php endif; if(get_ad(10) != ''): ?><center><div style="width:950px;height:90px;overflow:hidden;margin-top:15px;"><?php echo get_ad(10);?></div></center><?php endif; ?><script>$(document).ready(function(){
	$.getJSON("<?php echo C('official_website');?>push/pv?path=<?php echo C('web_path');?>&callback=?");
});
</script><script>$(function(){
	var currentindex=0;
	var timerID = null;
	function changeflash(i) {	
			currentindex=i;
			$(".boxImg ul li:eq("+i+")").fadeIn("fast").siblings().hide();
			$(".adType1 a:eq("+i+")").addClass("current").siblings().removeClass("current");
	}
	function startAm(){
		if(timerID){
			return;
		}
		timerID = setInterval(timer_tick,3000);
	}
	function stopAm(){
		if(timerID){
			clearInterval(timerID);
			timerID = null;
		}
	}
	function timer_tick(){
		var totalNum=$(".boxImg ul li").length;
		currentindex=currentindex<totalNum ? currentindex+1 : 0;
		changeflash(currentindex);
	}
	startAm();
	$(".adType1>a").hover(function(){stopAm();},function(){startAm();});
	$(".adType1 a").hover(function(){var num=$(this).index();changeflash(num);stopAm();},function(){startAm();})
})
</script><div class="footer n_foot"><div class="foot_con"><div class="f_list"><h4>发现美丽</h4><ul><?php if(is_array($p_cate_list)): $i = 0; $__LIST__ = $p_cate_list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$cval): $mod = ($i % 2 );++$i;?><li><a href="<?php echo get_url('index',$cval['id'],'cate');?>" target="_blank">挑<?php echo ($cval["name"]); ?></a></li><?php endforeach; endif; else: echo "" ;endif; ?></ul></div><div class="f_list"><h4>网站相关</h4><ul><li><a href="__PUBLIC__/statics/sitemap.html" target="_blank">网站地图</a></li><li><a href="__PUBLIC__/statics/sitemap.xml" target="_blank">sitemap</a></li><li><?php echo strclean(C('site_icp')); ?></li><li><?php echo strclean(C('statistics_code')); ?></li></ul></div><div class="f_list"><div class="weixin_code"><img src="__PUBLIC__/statics/images/jdcmserweima.png" alt="简单CMS二维码" width="100"><div>简单CMS二维码 </div></div></div><div class="f_list"><h4>关注我们</h4><ul><li><?php echo strclean(C('follow_us')); ?></li><li><?php echo strclean(C('follow_us2')); ?></li><li><?php echo strclean(C('follow_us3')); ?></li><li><?php echo strclean(C('follow_us4')); ?></li><li><?php echo strclean(C('follow_us5')); ?></li><li><?php echo strclean(C('follow_us6')); ?></li></ul></div><div class="f_list"><h4>友情链接</h4><ul id="link_slide"><?php if(is_array($linkList)): $i = 0; $__LIST__ = $linkList;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$val): $mod = ($i % 2 );++$i;?><li><a href="<?php echo ($val["url"]); ?>" target="_blank"><?php echo ($val["name"]); ?></a></li><?php endforeach; endif; else: echo "" ;endif; ?></ul></div><div class="clear_f"></div></div><?php if(C('record') != ''): ?><div class="record" style="line-height:20px;"><?php echo strclean(C('record')); ?></div><?php endif; ?></div><div id="goTop" class="none_f" style="display:none; "><a id="go_top" href="javascript:;"></a></div></body></html>